set nocompatible              " be iMproved, required
filetype off                  " required

" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')

" let Vundle manage Vundle, required
"Bundle 'VundleVim/Vundle.vim'

Bundle 'octol/vim-cpp-enhanced-highlight'

Bundle 'scrooloose/nerdtree'

"文件浏览
Bundle 'majutsushi/tagbar'    
"代码符号
Bundle 'wesleyche/SrcExpl'    
"类似sourceInsight的代码预览窗口
Bundle  'godlygeek/tabular'

Bundle  'chazy/cscope_maps'

" All of your Plugins must be added before the following line
filetype plugin indent on    " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList       - lists configured plugins
" :PluginInstall    - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean      - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
"设置行号
set number
"不自动换行
"set nowrap
"智能对齐
set smartindent
set autoindent
""一个tab 2个字符
set tabstop=2
set softtabstop=2
set shiftwidth=2
"不产生备份 
set nobackup

"总是在窗口右下角显示光标的位置
set ruler	
 
"在Vim窗口右下角显示未完成的命令 
set showcmd			

let NERDTreeWinPos='left'
nnoremap <F2> :NERDTreeToggle<CR>

inoremap jj <ESC>
inoremap jjs <ESC>:w<CR>
inoremap ,,n <C-X><C-N>
inoremap ,,o <C-X><C-O>
map ,tt :tabn<CR>
nnoremap ,tp :tabp<CR>
nnoremap ,tc :tabc<CR>
nnoremap ,to :tabo<CR>
nnoremap ,hh 0
nnoremap ,ll $
imap ,tt <ESC>:tabn<CR>
"窗口上下左右切换
nmap ,,h <C-W>h
nmap ,,j <C-W>j
nmap ,,k <C-W>k
nmap ,,l <C-W>l
nmap ,cc <ESC>:q<CR>  "关闭窗口


let g:clang_library_path='/usr/lib/llvm-3.8/lib/libclang.so.1'

syntax on

set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936
set termencoding=utf-8
set encoding=utf-8

